package com.cosmic.pizza.service;

import com.cosmic.pizza.exception.loginException;
import com.cosmic.pizza.pojo.User;

public interface UserService {
    User login(String username, String password) throws loginException;

    boolean register(User user);

    boolean usernameIsExists(String username);

    boolean activeUser(String code);
}
